import json
import random

from mimesis import Food
from faker import Faker
import faker
fake = Faker('zh_CN')
food = Food('zh')

# food.
def generate_food_info():
    foodr = {}
    foodr['name'] = food.dish()
    # food['price'] = faker.random_int(min=10, max=100)
    foodr['description'] = details = fake.paragraph() #nb_sentences=random.randint(3, 5)
    # foodr['description'] = fake.text(max_nb_chars=200, ext_word_list=['食品'])
    return foodr

# 生成10个随机的美食信息
# for i in range(10):
#     food = generate_food_info()
#     print(food)


# 读取JSON文件
# num=0
# for x in range(10):
#     with open('foodJsonData/foodStoreData'+str(x)+'.json', 'r',encoding='UTF-8') as f:
#         data = json.load(f)
#         num=num+len(data)
#
# # 打印转换后的字典
# print(num)

#foodJsonData/foodStoreDataVirtual0.json
# 读取JSON文件
# num=0
# for x in range(10):
#     with open(f'foodJsonData/foodStoreDataVirtual{x}.json', 'r',encoding='UTF-8') as f:
#         data = json.load(f)
#         num=num+len(data)
# # 打印转换后的字典
# print(num)

# from persistFoodData.foodSqlDao import FoodDao
#
# foodDao=FoodDao()
# print(foodDao.selectById(18))
# print(0%5)
#
# a=[1,2,3]
# a.pop()
# a.pop()
# a.pop()
# print(len(a))
# print(a)

# from faker import Faker
#
# # 创建Faker对象
# fake = Faker('zh_CN')
#
# # 生成随机名词
# noun = fake.word()
#
# # 生成随机文本
# text = fake.paragraph()
#
# # 打印结果
# print(f"随机名词: {noun}")
# print(f"随机文本: {text}")

a=1 or 2
print(a)